package icu.thatyear.main.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author Cjy
 * @since 2024-12-06
 */
@Getter
@Setter
@TableName("tz_message")
@Schema(name = "TzMessage", description = "")
public class TzMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "留言创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description = "姓名")
    @TableField("user_name")
    private String userName;

    @Schema(description = "邮箱")
    @TableField("email")
    private String email;

    @Schema(description = "联系方式")
    @TableField("contact")
    private String contact;

    @Schema(description = "留言内容")
    @TableField("content")
    private String content;

    @Schema(description = "留言回复")
    @TableField("reply")
    private String reply;

    @Schema(description = "状态：0:未审核 1审核通过")
    @TableField("status")
    private Byte status;
}
